package adminValidate

import (
	"gin/chibuda/system/validate"
)

func LoginValidate(parms map[string]string, scene string) string {
	condition := map[string]string{
		"username:账号": "require",
		"password:密码": "require",
	}
	sceneAll := map[string]string{
		"login":  "username|password",
	}
	return validate.CheckData(parms, condition, sceneAll[scene])
}
